using System.Xml.Serialization;
using Utils;

namespace Limestone
{
    public interface IPageTemplate
    {
        [XmlAttribute]
        string Name { get; set; }

        /// <summary>
        /// The path always begins with a / and includes the template name and ends with .template (the /sys/templates  prefix should not be added)
        /// </summary>
        [XmlAttribute]
        string Path { get; set; }

        [XmlAttribute]
        string HelpText { get; set; }

        [XmlArray("ListItems")]
        [XmlArrayItem("ListItem", Type = typeof (AbstractXmlSerializer<FieldSetting>))]
        FieldSettingCollection FieldSettings { get; set; }
    }
}